﻿function GuruGridClientSelectColumn_HeaderClick(sender,gridId, itemCss)
{
    if (sender.checked) {
        $("." + itemCss + " input[id*=" + gridId + "]").attr('checked', 'checked');        
    }
    else {
        $("." + itemCss + " input[id*=" + gridId + "]").removeAttr('checked');       
    }
}
function GetNumberOfClientSelected(gridId)
{
    var allControls = $(".ItemCheckBox input[id*=" + gridId + "]");
    
    if(allControls==null) return 0;
    var numOfSelected = 0;
    for(var i=0; i < allControls.length; i++)
    {       
       if(allControls[i].checked == true)
        numOfSelected++;
    }
    return numOfSelected;
}